package com.ymttest.common.enums;

/**
 * 砍价团成员属性
 */
public enum BargainGroupSubTypeEnum {

	/**
	 * 开团(团长) 1
	 */
	BARGAINER(1),

	/**
	 * 参团(团员) 2
	 */
	JOINER(2);


	private int intValue;
	private static java.util.HashMap<Integer, BargainGroupSubTypeEnum> mappings;

	private synchronized static java.util.HashMap<Integer, BargainGroupSubTypeEnum> getMappings() {
		if (mappings == null) {
			mappings = new java.util.HashMap<Integer, BargainGroupSubTypeEnum>();
		}
		return mappings;
	}

	private BargainGroupSubTypeEnum(int value) {
		intValue = value;
		BargainGroupSubTypeEnum.getMappings().put(value, this);
	}

	public int getValue() {
		return intValue;
	}

	public static BargainGroupSubTypeEnum forValue(int value) {
		return getMappings().get(value);
	}
}